Agency Commission Enhancements in API Version 36 Onwards
With the release of API version 36, significant enhancements have been made to the handling of Agency Commissions within the AdBook platform. These changes aim to provide greater accuracy and flexibility by supporting decimal percentage values for Agency Commissions. This update addresses previous limitations where the AgencyCommission
field in the Order object was restricted to integer values.
The AgencyCommission
field in the Order object has historically been an integer field. Starting from API version 36, this field is deprecated for setting decimal percentage values. While the field remains present in the Order object, its functionality has been limited to maintain backward compatibility:
GetOrder
API call, the AgencyCommission
field will always return a value of zero, regardless of any previously set decimal values.
AgencyCommission
field will result in a validation error. This ensures that only the supported method for setting decimal values is utilized. To accommodate the need for decimal precision in Agency Commissions, the OrderDynamicProperties
object must now be used. This approach offers enhanced flexibility and precision for setting commission values. Below are the key aspects of using OrderDynamicProperties
:
OrderDynamicProperties
object allows users to input decimal values for Agency Commissions. The value is provided as a string that represents a decimal percentage (e.g., "5.8").
OrderDynamicProperties
, the system accurately processes and stores the value within the Order. This ensures accurate and consistent data by not using the old AgencyCommission
field.